/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-01-17
 * Time: 22:26
 */
public class Main {
    //快慢指针的思想
    ListNode fast = head;
    ListNode slow = head;
    while(fast != null && fast.next != null) { //不能改变顺序
        fast = fast.next.next;
        slow = slow.next;
    }
    return slow;
}
